<?php
my_component_load('testing' , false);
my_component_load('paging' , false);  
my_component_load('spd_detail');
$task 	= isset($_GET['task']) ? $_GET['task'] : ""; 
$id 	= isset( $_GET['id'] ) ? $_GET['id']:  0;
$modulname = "Personalia _BN_ Perjalanan Dinas _BN_ STPD";
$modulname .= "_BN_ Surat _BN_ Detail";
if($_SERVER['REQUEST_METHOD'] == "POST"){
	if($task =="edit_page"){
		form_submit_biaya_detail($id);
		$content =  "Updated";
		generate_my_web($content,"","plain.php");
		exit;
	}
}else{
	if( $task =="edit_page"){
			$content  = form_biaya_detail_create($id);
			generate_my_web($content,"","plain.php");
			exit;  
	}else
	if( $task == 'edit' ){
			$title= ($id > '0' ) ?  "Perubahan data biaya" : "Tambah data biaya";
			facebox_page('index.php?com='.$_GET['com'].'&task=edit_page&id='.$id , $title , 180	); 
		
	}else{	
		load_facebox_script();
		$pagename = $modulname;
		$content = detail_info($id);
	}
}
generate_my_web($content, $pagename );
?>